package io.github.wjehovah.yyn.bean;


import android.os.Parcel;
import android.os.Parcelable;


import java.util.List;


/**
 * Created by wuyong on 15/8/5.
 */

public class CommBean  {
    public List<BeanDetail> list;
    public GroupInfo info;
    public  class GroupInfo {
        public String maxtime;
        public int count;
        public int page;
        public String vendor;
        public String maxid;//持有下更新一组的 参数
    }



    public static class BeanDetail implements Parcelable   {

        public String hate;
        public String voicetime;
        public String tag;
        public String cdn_img;
        public String image_small;

        public String type;
        public String theme_name;
        public String love;
        public String id;
        public String height;
        public String theme_type;
        public String bimageuri;
        public String voicelength;
        public String name;
        public String created_at;
        public String user_id;
        public String favourite;
        public String cai;
        public String is_gif;
        public String text;
        public String passtime;
        public String bookmark;
        public String videotime;
        public String weixin_url;
        public String status;
        public String profile_image;
        public String width;
        public List top_cmt;
        public List  themes;
        public String playcount;
        public String voiceuri;
        public String playfcount;
        public String ding;
        public String image0;
        public String theme_id;
        public String image2;
        public int t;
        public String image1;
        public String videouri;
        public String create_time;
        public String repost;
        public String screen_name;
        public String comment;
        public boolean dong;

        protected BeanDetail(Parcel in) {
            hate = in.readString();
            voicetime = in.readString();
            tag = in.readString();
            cdn_img = in.readString();
            image_small = in.readString();
            type = in.readString();
            theme_name = in.readString();
            love = in.readString();
            id = in.readString();
            height = in.readString();
            theme_type = in.readString();
            bimageuri = in.readString();
            voicelength = in.readString();
            name = in.readString();
            created_at = in.readString();
            user_id = in.readString();
            favourite = in.readString();
            cai = in.readString();
            is_gif = in.readString();
            text = in.readString();
            passtime = in.readString();
            bookmark = in.readString();
            videotime = in.readString();
            weixin_url = in.readString();
            status = in.readString();
            profile_image = in.readString();
            width = in.readString();
            playcount = in.readString();
            voiceuri = in.readString();
            playfcount = in.readString();
            ding = in.readString();
            image0 = in.readString();
            theme_id = in.readString();
            image2 = in.readString();
            t = in.readInt();
            image1 = in.readString();
            videouri = in.readString();
            create_time = in.readString();
            repost = in.readString();
            screen_name = in.readString();
            comment = in.readString();
            dong = in.readByte()!=0;

        }

        public static final Creator<BeanDetail> CREATOR = new Creator<BeanDetail>() {
            @Override
            public BeanDetail createFromParcel(Parcel in) {
                return new BeanDetail(in);
            }

            @Override
            public BeanDetail[] newArray(int size) {
                return new BeanDetail[size];
            }
        };

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(hate);
            dest.writeString(voicetime);
            dest.writeString(tag);
            dest.writeString(cdn_img);
            dest.writeString(image_small);
            dest.writeString(type);
            dest.writeString(theme_name);
            dest.writeString(love);
            dest.writeString(id);
            dest.writeString(height);
            dest.writeString(theme_type);
            dest.writeString(bimageuri);
            dest.writeString(voicelength);
            dest.writeString(name);
            dest.writeString(created_at);
            dest.writeString(user_id);
            dest.writeString(favourite);
            dest.writeString(cai);
            dest.writeString(is_gif);
            dest.writeString(text);
            dest.writeString(passtime);
            dest.writeString(bookmark);
            dest.writeString(videotime);
            dest.writeString(weixin_url);
            dest.writeString(status);
            dest.writeString(profile_image);
            dest.writeString(width);
            dest.writeString(playcount);
            dest.writeString(voiceuri);
            dest.writeString(playfcount);
            dest.writeString(ding);
            dest.writeString(image0);
            dest.writeString(theme_id);
            dest.writeString(image2);
            dest.writeInt(t);
            dest.writeString(image1);
            dest.writeString(videouri);
            dest.writeString(create_time);
            dest.writeString(repost);
            dest.writeString(screen_name);
            dest.writeString(comment);
            dest.writeByte((byte)(dong?1:0));
        }
    }
}
